#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
char* removeTrailingZeros(char* num) {
    int max = strlen(num) - 1;
    while (num[max] == '0')
    {
        num[max] = '\0';
        max--;
    }
    return num;
}
int main()
{
    char num[10] = { "156453100" };
    printf("%s",removeTrailingZeros(num));
}